import { IsNotEmpty } from 'class-validator';
import { PoemType } from 'src/modules/poem-type/entities/poem-type.entity';

export class CreateDto {
  @IsNotEmpty({ message: '标签名称不能为空' })
  name: string;

  description: string;

  @IsNotEmpty({ message: '分类id不能为空' })
  typeId: typeof PoemType.prototype.id;
}
